# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=minicom
pkgver=2.9
pkgrel=0
pkgdesc="menu driven communications program for terminals"
url="https://tracker.debian.org/pkg/minicom"
arch="all"
license="GPL-2.0-or-later"
makedepends="ncurses-dev gettext-dev linux-headers"
subpackages="$pkgname-doc $pkgname-lang"
source="https://salsa.debian.org/minicom-team/minicom/-/archive/$pkgver/minicom-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
3bd41fa3b93b086c7b0fc851e9f46f241b13a037a4a325fc5e0ca6a4db7e9389443e8965891aa938a9c31ff848d50fd0cb88b98690a06737b5f3aca2520a60e2  minicom-2.9.tar.gz
"
